﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using University.Workshop.Presenters.Square.Show;

namespace University.Workshop.Presentation.Square.Show
{
    /// <summary>
    /// Interaction logic for PageSecondStepShowSquare.xaml
    /// </summary>
    public partial class PageSecondStepShowSquare : Page,ISecondStepForShowSquare
    {
        PresenterSecondStepShowSquare pSecondStepShowSquare;
        private PresenterShowSquare pShowSquare;
        public PageSecondStepShowSquare(PresenterShowSquare pShowSquare)
        {
            InitializeComponent();
            pSecondStepShowSquare = new PresenterSecondStepShowSquare(this);
            this.pShowSquare = pShowSquare;
        }

        public Model.Square SquareToShow
        {
            get;
            set;
        }

        public ICollection<Model.Allotment> AllotmentsToShow
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                AllotmentsDtgv.ItemsSource = null;
                AllotmentsDtgv.ItemsSource = value;

            }
        }

        public string UbicationCroquisSquareToShow
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {

            }
        }

        public void Update()
        {

        }

        public void GoNextPage()
        {

        }

        public void GoBackPage()
        {
            pShowSquare.GoStepOne();
        }
    }
}
